package com.xuxin.baby;

import android.view.View;

import com.xuxin.baby.base.BaseActivity;
import com.xuxin.baby.base.BaseConstant;
import com.xuxin.baby.contract.TestContract;
import com.xuxin.baby.presenter.TestPresenter;
import com.xuxin.baby.utils.ACache;

/**
 * Created by xu_xin
 * Created on 2020.11.21 0021
 * 测试
 */
public class TestActivity extends BaseActivity implements TestContract.View {
    private TestContract.Presenter presenter = new TestPresenter(this);
    private String tenantId;//租户id
    private String token;//授权token

    @Override
    public void setContentView() {
        setContentView(R.layout.activity_smart);
    }

    @Override
    public void initView() {
    }

    @Override
    public void initData() {
        ACache aCache = ACache.get(context);
        tenantId = aCache.getAsString(BaseConstant.tenantId);
        token = aCache.getAsString(BaseConstant.token);
        presenter.test(tenantId, token);
    }

    @Override
    public void onComplete() {

    }

    @Override
    public void onClick(View view) {

    }
}